<?php

namespace app\index\controller;

use think\Controller;
use think\Request;

class Index extends Controller
{
    /**
     * 显示资源列表
     *
     * @return \think\Response
     */
    public function index()
    {
        return $this->fetch();
    }
    /**
     * 假装我是一个后台
     * @wyy.xb@qq.com xiaobai
     * @return        [type]  [description]
     */
    public function admin()
    {
        return $this->fetch();
    }
    public function post($msg)
    {
        if (pushSocket("chat message", $msg, $uid='1493462498000')) {
            $this->success("发送成功");
        }
        $this->error("重新尝试");
    }
}
